package com.itheima.test;

/**
 * @Author 王加鑫
 * @Date 2021/4/14 19:13
 * @Version 1.0
 * 简单的赋值运算符
 */
public class OperatorDemo01 {
    public static void main(String[] args) {
        int a = 10;
        int b = 4;
        System.out.println("a+b="+(a+b));
        System.out.println("a-b="+(a-b));
        System.out.println("a*b="+(a*b));
        //java中,在除不尽的情况下,要想得到完整的数值,需要有小数的参与
        System.out.println("a/b="+((a*1.0)/b));
        //% 取余
        System.out.println("a%b="+(a%b));
    }
}
